package ifmo.group5512.util;


import ifmo.group5512.entity.Order;


public class ComplexityOfOrder {

    private Order order;

    private Integer complexity;

    private Integer waitingForMaterials;

    private Float penalty;

    public Float getPenalty() {
        return penalty;
    }

    public Float getPenaltyCoefficient() {
        return penaltyCoefficient;
    }

    private Float penaltyCoefficient;

    public ComplexityOfOrder(Order order, Integer complexity, Integer daysToComplete, Integer waitinForMaterials) {
        this.order = order;
        this.complexity = complexity;
        penalty = 1/daysToComplete.floatValue();
        penaltyCoefficient = 1.0f;
    }

    public Integer getComplexity() {
        return complexity;
    }

    public Order getOrder() {
        return order;
    }

    public Integer getWaitingForMaterials() {
        return waitingForMaterials;
    }
}

